package com.jacobson.huobi.utils

import io.reactivex.ObservableTransformer
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers

/**
 * ================================================
 *
 *  @author Wucz on 2018/7/23 11:22
 * ================================================
 */
class RxSchedulersHelper {
    companion object {

        fun <T> applySchedulersIoMain(): ObservableTransformer<T, T> = ObservableTransformer {
            it.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread())
        }

    }
}